class Solution {
public:
    int multiply(int A, int B) {
      return B==0?0:A+multiply(A,B-1);
    }
};
